package com.egg.mall.entity.sku;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * SKU快照
 * </p>
 *
 * @author east
 * @since 2022-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "mall_sku_snapshot")
@ApiModel(value = "SkuSnapshot对象", description = "SKU快照")
public class SkuSnapshot extends BaseEntity {


    @ApiModelProperty(value = "SKU ID")
    @TableField(value = "sku_id")
    private Long skuId;

    @ApiModelProperty(value = "SKU版本")
    @TableField(value = "sku_version")
    private Long skuVersion;

    @ApiModelProperty(value = "SPU名称")
    @TableField(value = "spu_name")
    private String spuName;

    @ApiModelProperty(value = "SKU名称")
    @TableField(value = "sku_name")
    private String skuName;

    @ApiModelProperty(value = "SKU价格(单位:分)")
    @TableField(value = "sku_price")
    private Long skuPrice;

    @ApiModelProperty(value = "SKU图片地址")
    @TableField(value = "sku_pic_url")
    private String skuPicUrl;


}
